package com.itheima.Demo01.demo05;

import java.util.concurrent.CountDownLatch;

public class Thred01 extends Thread{
    private CountDownLatch c;
    public Thred01(CountDownLatch c) {
        this.c =c;
    }

    @Override
    public void run() {
        for (int i = 1; i < 11; i++) {
            System.out.println(getName()+"吃"+i+"个饺子");
        }
        c.countDown();
    }
}
